package cn.edu.siso.imhere;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by 文寅 on 2015-2-15.
 */
public class GuidePagerAdapter extends FragmentPagerAdapter {
    private List<Fragment> m_Guides = null;

    public GuidePagerAdapter(FragmentManager fm, List<Fragment> guides) {
        super(fm);

        m_Guides = guides;
    }

    @Override
    public Fragment getItem(int position) {
        return m_Guides.get(position);
    }

    @Override
    public int getCount() {
        return m_Guides.size();
    }
}
